import Mock from 'mockjs2'




const activity = () => {
  return {
    "success": true,
    "message": "2",
    "code": 0,
    "result": [
      {
        "key": "c6d7cb4deeac411cb3384b1b31278596",
        "value": "c6d7cb4deeac411cb3384b1b31278596",
        "title": "设备分组A",
        "isLeaf": false,
        "id": "c6d7cb4deeac411cb3384b1b31278596",
        "parentId": null,
        "departName": "设备分组A",
        "departNameEn": null,
        "departNameAbbr": null,
        "departOrder": 0,
        "description": null,
        "orgCategory": "1",
        "orgType": "1",
        "orgCode": "A01",
        "mobile": null,
        "fax": null,
        "address": null,
        "memo": null,
        "status": null,
        "delFlag": "0",
        "qywxIdentifier": null,
        "createBy": "admin",
        "createTime": "2019-02-11 14:21:51",
        "updateBy": "admin",
        "updateTime": "2020-05-02 18:21:27",
        "children": [
          {
            "key": "4f1765520d6346f9bd9c79e2479e5b12",
            "value": "4f1765520d6346f9bd9c79e2479e5b12",
            "title": "设备AA",
            "isLeaf": true,
            "id": "4f1765520d6346f9bd9c79e2479e5b12",
            "parentId": "c6d7cb4deeac411cb3384b1b31278596",
            "departName": "设备AA",
            "departNameEn": null,
            "departNameAbbr": null,
            "departOrder": 0,
            "description": null,
            "orgCategory": "1",
            "orgType": "2",
            "orgCode": "A01A03",
            "mobile": null,
            "fax": null,
            "address": null,
            "memo": null,
            "status": null,
            "delFlag": "0",
            "qywxIdentifier": null,
            "createBy": "admin",
            "createTime": "2019-02-20 17:15:34",
            "updateBy": "admin",
            "updateTime": "2019-02-26 16:36:18",
            "children": null
          },
          {
            "key": "67fc001af12a4f9b8458005d3f19934a",
            "value": "67fc001af12a4f9b8458005d3f19934a",
            "title": "设备AB",
            "isLeaf": true,
            "id": "67fc001af12a4f9b8458005d3f19934a",
            "parentId": "c6d7cb4deeac411cb3384b1b31278596",
            "departName": "设备AB",
            "departNameEn": null,
            "departNameAbbr": null,
            "departOrder": 0,
            "description": null,
            "orgCategory": "1",
            "orgType": "2",
            "orgCode": "A01A04",
            "mobile": null,
            "fax": null,
            "address": null,
            "memo": null,
            "status": null,
            "delFlag": "0",
            "qywxIdentifier": null,
            "createBy": "admin",
            "createTime": "2019-02-21 16:14:35",
            "updateBy": "admin",
            "updateTime": "2019-02-25 12:49:41",
            "children": null
          },
          {
            "key": "57197590443c44f083d42ae24ef26a2c",
            "value": "57197590443c44f083d42ae24ef26a2c",
            "title": "设备AC",
            "isLeaf": false,
            "id": "57197590443c44f083d42ae24ef26a2c",
            "parentId": "c6d7cb4deeac411cb3384b1b31278596",
            "departName": "设备AC",
            "departNameEn": null,
            "departNameAbbr": null,
            "departOrder": 0,
            "description": null,
            "orgCategory": "1",
            "orgType": "2",
            "orgCode": "A01A05",
            "mobile": null,
            "fax": null,
            "address": null,
            "memo": null,
            "status": null,
            "delFlag": "0",
            "qywxIdentifier": null,
            "createBy": "admin",
            "createTime": "2019-02-21 16:14:41",
            "updateBy": "admin",
            "updateTime": "2019-03-27 19:05:49",
            "children": [
              {
                "key": "63775228b7b041a99825f79760590b7d",
                "value": "63775228b7b041a99825f79760590b7d",
                "title": "设备ACA",
                "isLeaf": true,
                "id": "63775228b7b041a99825f79760590b7d",
                "parentId": "57197590443c44f083d42ae24ef26a2c",
                "departName": "设备ACA",
                "departNameEn": null,
                "departNameAbbr": null,
                "departOrder": 0,
                "description": null,
                "orgCategory": "3",
                "orgType": "3",
                "orgCode": "A01A05A01",
                "mobile": null,
                "fax": null,
                "address": null,
                "memo": null,
                "status": null,
                "delFlag": "0",
                "qywxIdentifier": null,
                "createBy": "admin",
                "createTime": "2020-05-02 15:29:09",
                "updateBy": null,
                "updateTime": null,
                "children": null
              }
            ]
          }
        ]
      },
      {
        "key": "c6d7cb4deeac411cb3384b1b312785961",
        "value": "c6d7cb4deeac411cb3384b1b312785963",
        "title": "设备分组B",
        "isLeaf": false,
        "id": "c6d7cb4deeac411cb3384b1b312785962",
        "parentId": null,
        "departName": "设备分组B",
        "departNameEn": null,
        "departNameAbbr": null,
        "departOrder": 0,
        "description": null,
        "orgCategory": "1",
        "orgType": "1",
        "orgCode": "A01",
        "mobile": null,
        "fax": null,
        "address": null,
        "memo": null,
        "status": null,
        "delFlag": "0",
        "qywxIdentifier": null,
        "createBy": "admin",
        "createTime": "2019-02-11 14:21:51",
        "updateBy": "admin",
        "updateTime": "2020-05-02 18:21:27",
      }

    ],
    "timestamp": 1670909880723
  }
}

Mock.mock(/\/sys\/sysDevice\/queryMyDeviceTreeList/, 'get', activity)

// list: "/sys/sysDevice/deviceList",
Mock.mock(/\/sys\/sysDevice\/deviceList/, 'get', {
  "success": true,
  "message": "",
  "code": 0,
  "result": {
    "records": [
      {
        "msg": null,
        "ret": 0,
        "vin": 'LSWDBATSAFETY0112',
        "factoryTime":"2020-10-10 ",
        "operation_start_time": null,
        "operation_end_time": null,
        "nominal_vol": null,
        "rated_capacity": null,
        "mileage": 7066509,
        "sample_period_ave": null,
        "battery_seriesnumber": "LDCNA11000086X",
        "materials": null,
        "plate": null,
        "vehicle_company": "东风柳州汽车有限公司",
        "vehicle_model": "第三方车辆专用",
        "soh": 0.8,
        "internal_resistance": 37,
        "comment": null
      },
      {
        "msg": null,
        "ret": 0,
        "vin": 'LSWDBATSAFETY0020',
        "factoryTime":"2020-10-10 ",
        "operation_start_time": null,
        "operation_end_time": null,
        "nominal_vol": null,
        "rated_capacity": null,
        "mileage": 7066509,
        "sample_period_ave": null,
        "battery_seriesnumber": "LDCNA11000086X",
        "materials": null,
        "plate": null,
        "vehicle_company": "东风柳州汽车有限公司",
        "vehicle_model": "第三方车辆专用",
        "soh": 0.8,
        "internal_resistance": 37,
        "comment": null
      },
      {
        "msg": null,
        "ret": 0,
        "vin": 'LSWDBATSAFETY1212',
        "factoryTime":"2020-10-10 ",
        "operation_start_time": null,
        "operation_end_time": null,
        "nominal_vol": null,
        "rated_capacity": null,
        "mileage": 7066509,
        "sample_period_ave": null,
        "battery_seriesnumber": "LDCNA11000086X",
        "materials": null,
        "plate": null,
        "vehicle_company": "东风柳州汽车有限公司",
        "vehicle_model": "第三方车辆专用",
        "soh": 0.8,
        "internal_resistance": 37,
        "comment": null
      },
      {
        "msg": null,
        "ret": 0,
        "vin": 'LSWDBATSAFETY5523',
        "factoryTime":"2020-10-10 ",
        "operation_start_time": null,
        "operation_end_time": null,
        "nominal_vol": null,
        "rated_capacity": null,
        "mileage": 7066509,
        "sample_period_ave": null,
        "battery_seriesnumber": "LDCNA11000086X",
        "materials": null,
        "plate": null,
        "vehicle_company": "东风柳州汽车有限公司",
        "vehicle_model": "第三方车辆专用",
        "soh": 0.8,
        "internal_resistance": 37,
        "comment": null
      }
    ],
    "total": 2,
    "size": 10,
    "current": 1,
    "orders": [],
    "optimizeCountSql": true,
    "searchCount": true,
    "countId": null,
    "maxLimit": null,
    "pages": 1
  },
  "timestamp": 1670912398587
})
